!

SNAP - 07 (Introduction to Variables Part 2)

OPENING QUESTIONS: Work with your team to review possible test items for tomorrow

OBJECTIVES:

    • Review/practice getting input from the user

WORD FOR TODAY:

  • system variable (a data bucket provided by SNAP like )
  • variable (a user-defined data bucket)
  • global variable (available EVERYWHERE)
  • script variable (PRIVATE)

TIPS O' THE DAY

1) ALWAYS have a 'clear' button ( ) on hand... it makes clearing the screen much easier than having to hunt for it.

2) You can also 'delete' a script by dragging it off the scripting area

3) If you know the name of a block but can't remember where it is, use the ALWAYS helpful ctrl-F key (that works on web sites AND pdf documents by the way)

4) How can you *duplicate* a script or part of a script (this will be VERY helpful in today's lab)

5) Always a good idea to have an x 'go to 0' and a y 'go to 0' to re-center your sprite if it get's lost

6) Right Mouse click on the stage and select 'show all' to bring sprite(s) back

WORK O' THE DAY:

SNOW DAY!

Please work solo to write a short program in SNAP that:

  1. Asks the user to input 3 separate numbers
  2. Store each of those numbers in a variable
  3. Add those numbers
  4. Display the result WITH a message to the user: "The answer is: "

═══════════════════════════